package com.pig4cloud.pig.module.api.entity.raffle;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 【请填写功能名称】对象 raffle_activity
 *
 * @author ruoyi
 * @date 2021-08-29
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("raffle_activity")
public class RaffleActivity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private Integer estateId;

	private Integer propertyId;
    /**
     * $column.columnComment
     */
    private String raffleTitle;

	/**
	 *  所在省份
	 */
	private String provName;
	/**
	 *  所在城市
	 */
	private String cityName;

	private Integer provId;
	private Integer	cityId;



	/**
     * $column.columnComment
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * $column.columnComment
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * $column.columnComment
     */
    private Integer state;

    /**
     * $column.columnComment
     */
    private String remark;

    /**
     * 每人最多抽奖的次数
     */
    private Long maxDrawCount;

    /**
     * $column.columnComment
     */
    private String roleInfo;

    /**
     * $column.columnComment
     */
    private Integer isLimitWinner;

    /**
     * $column.columnComment
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date limitWinnerBeginTime;

    /**
     * $column.columnComment
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date limitWinnerEndTime;

    /**
     * 是否限制未绑定保单用户
     */
    private Integer isLimitNewUserWin;

    /**
     * 如果只放开入口，不能抽奖的话  在这个地方写上提示
     */
    private String showTitle;

	/**
	 * 是否限制周几开启  0 - 不限制 1 - 限制 （open_weekday）
	 */
	private Integer isLimitWeekday;

    private Integer openWeekday;

	@TableField(exist = false)
	private String[] provinceArray;
}
